const TokenKey = "App-Token";

export function getToken() : string {
	return uni.getStorageSync(TokenKey);
}

export function setToken(token : string) {
	return uni.setStorageSync(TokenKey, token);
}

export function removeToken() {
	return uni.removeStorageSync(TokenKey);
}

export function getUser() : any {
	return uni.getStorageSync("User");
}

export function setUser(user : object) {
	return uni.setStorageSync("User", user);
}

export function removeUser() {
	return uni.removeStorageSync("User");
}

export function getClubAndUser() : any {
	return uni.getStorageSync("ClubAndUser");
}

export function setClubAndUser(user : any) {
	return uni.setStorageSync("ClubAndUser", user);
}
export function removeClubAndUser() {
	return uni.removeStorageSync("ClubAndUser");
}
export function getDraft() : any {
	return uni.getStorageSync("Draft");
}
export function setDraft(Draft : any) {
	return uni.setStorageSync("Draft", Draft);
}
export function removeDraft() {
	return uni.removeStorageSync("Draft");
}
export function getLocation() : any {
	return uni.getStorageSync("Location");
}
export function setLocation(Location : any) {
	return uni.setStorageSync("Location", Location);
}